package com.toubutu.audio.dto;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.toubutu.audio.common.QueryBaseDto;
import com.toubutu.audio.entity.Collection;
import com.toubutu.constants.BaseConstants;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 朱鹏杰
 * @version 1.0
 * @date 2024年02月26日 19:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PageQueryCollectionDto extends QueryBaseDto<Collection> {

    @Override
    public LambdaQueryWrapper<Collection> getWrapper() {
        LambdaQueryWrapper<Collection> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Collection::getIsDelete, BaseConstants.UN_DELETED);
        return wrapper;
    }
}
